package cn.edu.hstc.wm;

/**
 * @ClassName: Constants
 * @Description: 全局常量类
 * 
 * @ModificationHistory
 */
public class Constants {

	/** 网络状态: 网络不正常 */
	public static final int NET_TYPE_DISABLE = 0x00;
	/** 网络状态: 网络没有连接 */
	public static final int NET_TYPE_DISCONN = 0x01;
	/** 网络状态: 网络正常 */
	public static final int NET_TYPE_ENABLE = 0x02;
	/** 网络状态: 网络正在连接 */
	public static final int NET_TYPE_CONN = 0x03;

	/** 跳转到网络设置的request code */
	public static final int SETUP_NETWORK_REQUEST_CODE = 0x01;

	/** 网络设置结果返回值 result code */
	public static final int SETUP_NETWORK_RESULT_CODE = 0x00;

	/** ImageLoader开发者模式 */
	public static final boolean DEVELOPER_MODE = false;

	/** 进入引导页的方式 */
	public static final String START_GUIDE_PAGE_TYPE = "cn.edu.hstc.wm.intent.action.START_GUIDE_PAGE_TYPE";
	public static final int START_GUIDE_PAGE_TYPE_FIRST_IN = 0x00;
	public static final int START_GUIDE_PAGE_TYPE_SETTING = 0x01;

	/** 进入搜索页面的来源 */
	public static final String SEARCH_TYPE = "cn.edu.hstc.wm.intent.action.SEARCH_TYPE";
	public static final int SEARCH_TYPE_STORES = 0x00;
	public static final int SEARCH_TYPE_GOODS = 0x01;

	/** 跳转到用户登录界面的来源 */
	public static final String LOGIN_TYPE = "cn.edu.hstc.wm.intent.action.LOGIN_TYPE";
	public static final String LOGIN_RESULT = "cn.edu.hstc.wm.intent.action.LOGIN_RESULT";
	public static final int LOGIN_TYPE_UCENTER = 0x00;
	public static final int LOGIN_TYPE_SETTING_LOGIN = 0x01;
	public static final int LOGIN_TYPE_SETTING_INFO = 0x02;
	public static final int LOGIN_TYPE_MY_ORDER = 0x03;
	public static final int LOGIN_TYPE_MY_COMMENT = 0x04;
	public static final int LOGIN_TYPE_GO_ORDER = 0x05;

	/** 默认无图 */
	public static final String DEFAULT_IMG = "default.png";

	/** SharePreference 文件名 */
	public static final String APP_CONF = "app_conf";

	/** 首次使用app */
	public static final String IS_FIRST_IN = "isFirst";

	/** SharePreference 中保存的key */
	public static final String USER_NAME = "user_name";
	public static final String USER_PASSWD = "password";
	public static final String USER_IS_REMENBER_ME = "remenber_user";
	public static final String USER_FACE = "face";
	public static final String USER_REGISTER_TIME = "register_time";
	public static final String USER_LAST_ONLINE_TIME = "last_time";
	public static final String USER_GENDER = "gender";

	/** http 请求参数 user name */
	public static final String HTTP_PARAMS_USER_NANE = "name";
	/** http请求参数 password */
	public static final String HTTP_PARAMS_USER_PW = "pw";

	/** json 中用到的key */
	public static final String JSON_KEY_USER_NAME = "name";
	public static final String JSON_KEY_USER_UID = "uid";
	public static final String JSON_KEY_USER_PW = "password";
	public static final String JSON_KEY_USER_GENDER = "gender";
	public static final String JSON_KEY_USER_FACE = "face";
	public static final String JSON_KEY_USER_REMEMBER_ME = "rememberMe";
	public static final String JSON_KEY_USER_JOIN_TIME = "join_time";

	// public static final String HTTP_PARAMS_USER_
	// public static final String HTTP_PARAMS_USER_

	/**
	 * Setting 配置文件对应的key
	 */
	public static final String AUTO_UPDATE = "auto_update";
	public static final String ITEM_COUNT = "item_count";
	public static final String LOAD_IMAGE = "load_image";
	public static final String START_CHECK_UPDATE = "start_check_update";
	public static final String AUTO_START = "auto_start";

	/** 一些Intent Action **/
	public static final String INTENT_ACTION_MAIN = "";
	public static final String INTENT_ACTION_SETTING = "";

	public static final String UPDATE_SERVICE = "cn.edu.hstc.wm.intent.action.UPDATE_SERVICE";

}
